package com.qiyu.tech.gateway.dao.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.qiyu.tech.gateway.dao.po.BlackListPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author linhao
 * @Date created in 10:17 下午 2021/3/16
 */
@Mapper
public interface BlackListMapper extends BaseMapper<BlackListPO> {

    @Select("select * from t_black_list")
    List<BlackListPO> selectAll();

    @Select("select * from t_black_list where type=#{type}")
    List<BlackListPO> selectAllByType(@Param("type")int type);
}
